package com.qf.day06.homework;

public class test {
    public static void main(String[] args) {
        int sum=0;
        System.out.println("sum使用方法前:"+sum);
        getSum(sum);
        System.out.println("sum使用方法后:"+sum);

    }
    public static void getSum(int sum){
        sum=sum+1;
        System.out.println("sum使用方法时:"+sum);

    }
}
